using UnityEngine;

[ExecuteInEditMode]
public class BillboardUnit : MonoBehaviour
{
	public float AdditionalHeight;

	private void Update()
	{
		if (GetComponent<Renderer>().isVisible)
		{
			base.transform.LookAt(Camera.main.transform.position);
			base.transform.eulerAngles = new Vector3(0f, base.transform.eulerAngles.y + 180f, base.transform.eulerAngles.z);
		}
	}
}
